# In this flask tutorial I will show you how to render 
# and create HTML templates. I will also discuss how to 
# dynamically create HTML with the use of python code in your html files. 
from flask import Flask,redirect,url_for,render_template

app = Flask(__name__)
@app.route('/<name>')
def home(name):
    #如果加载index1.html
    # return render_template("index1.html",content = name,r=3)
    #如果加载index.html，
    # return render_template("index.html")
    #如果加载index2.html
    return render_template("index2.html",content = ["zhang san","li si","wangwu"])
if __name__ == '__main__':
    app.run(debug=True)
